<!DOCTYPE HTML>
<html>
<head>
</head>
<script>
  window.onorientationchange = function() {
    document.location.hash = '#' + window.orientation;
  };

  document.location.hash = '#ready';
</script>
<body>
  <div>Starting...</div>
</body>
</html>
